﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;
using MEF_Test.Contracts;
using System.Windows.Controls;
using MEF_Test.Bricks;
using System.Windows.Media;
using MEF_Test.Bricks.Actions;



namespace PlayAction
{
    [Export(typeof(NodeActionBase))]
    // Important otherwise, only one instance of the ShareAction will ever be generated, and all the items cannot use the same instance of the action :
    // especially for the Presenter, becuse a visual cannot be more than once in the visual tree !
    [PartCreationPolicy(CreationPolicy.NonShared)]
    [ExportMetadata("Action", "Open")]
    public class OpenAction : NodeActionBase
    {
        public OpenAction()
        {
            Presenter = new NodeActionPresenterBase();
        }
    }
}
